package com.mtiiot.server;

import java.io.UnsupportedEncodingException;

import com.google.protobuf.InvalidProtocolBufferException;
import com.mtiiot.exception.MessageQueueException;
import com.mtiiot.exception.WorkListException;
import com.mtiiot.proto.Data.Group;


/**
 * 数据处理接口
 * @author 卢承业
 *
 */
public interface DataHandler {
	public void init(Group group);
	public Group handle() throws InvalidProtocolBufferException,UnsupportedEncodingException,MessageQueueException,WorkListException;
	public boolean validateDynamicPwd();
	public void writeGroupToFile(byte[] respUtf82);
	public String writeStringToFile(String json, boolean isReturnData);
	public Group handleErrorMsg();
	public Group dataProcessCenter();
	public Group handleHeartMsg();
}
